﻿@{
    ViewBag.Title = "AllGroups";
}

<div id="allgroups-page">
    <p>
        <a href="~/Home/Main">Home</a>
         > 
        <a href="~/Account/Profile?name=@User.Identity.Name">Profile</a>
    </p>
    <h3>All groups</h3>

    <ul>
        @foreach(var group in Model)
        {
            <li>
                <a href="~/Account/Group/@group.id">
                    @group.name
                </a>
            </li>
        }
    </ul>

    <a href="~/Account/CreateGroup">
        <button>Create new group</button>
    </a>


</div>